<?php
	$text=$_POST['text'];
	$name=$_POST['text2'];
	$file = fopen($name,"w");
	fwrite($file,$text);
	fclose($file);
	echo "Saved successfully";
?>